<h1><%= link_to 'Your Lists', '/lists/', :target => '_top' %></h1>

<%= link_to 'Add list', new_list_path, :id => 'add_entry', :target => '_top' %>
<%= link_to 'Edit lists', '#', :id => 'edit_entries', :target => '_top' %>

<% if (@lists.empty?) %>
  <h2 class="notice">No lists? <a href="<%= new_list_path %>" target="_top">Create one</a> &amp; get going</h2>
<% else %>
  <ol id="lists">
  <% for list in @lists %>
    <li class="<%= cycle('even', 'odd') %> count<%= list.entries.count(:conditions => 'status = 1') %>">
      <%= link_to 'Destroy', list, :confirm => 'Are you sure?', :method => :delete, :class => 'destroy' %>
      <%= link_to 'Edit', edit_list_path(list), :class => 'edit', :target => '_top' %>
      <%= link_to(h(list.title), list_path(list), :class => 'entry', :target => '_top') %>
    </li>
  <% end %>
  </ol>
<% end %>
<h2>Bookmarklets</h2>
<ul>
  <li><a href="javascript:var%20d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),f='http://<%= request.host %>/s',l=d.location,e=encodeURIComponent,p='?v=1&u='+e(l.href)%20+'&t='+e(d.title)%20+'&s='+e(s),u=f+p;try{if(!/^(.*\.)?instapaper([^.]*)?$/.test(l.host))throw(0);iptstbt();}catch(z){a%20=function(){if(!w.open(u,'t','toolbar=0,resizable=0,scrollbars=1,status=1,width=250,height=300'))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();}void(0)">Add to...</a></li>
</ul>